<style tyle="text/css">
    .modal-lg {
      width: 40%;
    }
</style>
<div class="modal-header">
	<h4 class="modal-title">企业限额信息</h4>
</div>
<div class="modal-body">
	<form name="form" class="form-horizontal">
		<div class="form-group" ng-show="!flag">
			<label class="col-lg-3 control-label">企业名称：</label>
			<div class="col-lg-6">
				<ui-select ng-model="obj.company" theme="bootstrap">
					<ui-select-match placeholder="选择一个企业">{{$select.selected.name}}({{$select.selected.code}})</ui-select-match>
					<ui-select-choices repeat="item in company_list | filter: $select.search">
						<span ng-bind-html="item.name"></span>({{item.code}})
					</ui-select-choices>
				</ui-select>
			</div>
		</div>
		<div class="form-group" ng-show="flag">
			<label class="col-lg-3 control-label">企业名称：</label>
			<label class="col-lg-6 control-label text-left">{{obj.company_name}}（{{obj.company_code}}）</label>
		</div>
		<div class="form-group">
			<label class="col-lg-3 control-label">补贴上限：</label>
			<div class="col-lg-6">
				<div class="input-group m-b">
					<input type="number" class="form-control"  ng-model="obj.uplimit_money" placeholder="0.00">
					<span class="input-group-addon">元</span>
				</div>
			</div>
		</div>
		<div class="form-group">
			<span class="col-lg-6 col-lg-offset-3">
				<i style="color: red">提示: 补贴上限设为0时，表示不限制</i>
			</span>
		</div>
	</form>

</div>
<div class="modal-footer">
	<button class="btn btn-success" type="button" ng-click="ok()">确定</button>
	<button class="btn btn-danger" type="button" ng-click="cancel()">取消</button>
</div>
